package com.zy.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 补卡实体类
 * @author: whf
 * @create: 2022-05-09 15:05
 **/
@Data
@ApiModel
@TableName("tb_reissue_card" )
public class TbReissueCard implements Serializable {

    private static final long serialVersionUID =  1834667835568850222L;

    private Long id;

    @TableField("user_id" )
    @ApiModelProperty(value ="用户id")
    private Long userId;

    @TableField(exist = false)
    private String userName;

    @TableField("address" )
    @ApiModelProperty(value ="位置")
    private String address;

    @TableField("punch_card_id" )
    @ApiModelProperty(value ="punchCardId")
    private Long punchCardId;

    @TableField("apply_reason" )
    @ApiModelProperty(value ="申请原因")
    private String applyReason;

    @TableField("status" )
    @ApiModelProperty(value ="状态0待审核1通过2未通过")
    private Integer status;

    @TableField("audit_user_id" )
    @ApiModelProperty(value ="审核人id")
    private Long auditUserId;

    @TableField(exist = false)
    private String auditUserName;

    @TableField("audit_reason" )
    @ApiModelProperty(value ="审核原因")
    private String auditReason;

    @TableField("CREATE_TIME" )
    @ApiModelProperty(value ="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @TableField("AUDIT_TIME" )
    @ApiModelProperty(value ="审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date auditTime;

    /**
     * 删除标志0未删除1已删除
     */
    @TableLogic
    @TableField(value = "del_flag")
    @ApiModelProperty(hidden = true)
    private String delFlag;

    @TableField(exist = false)
    private Integer state;

    @TableField(exist = false)
    private String reissueCardDate;

}
